<?php use_helper("Number"); ?>

<h2><?php echo __("player"); ?>: <?php echo $player; ?></h2>

<table border="1">
  <tr>
    <th>Game</th>
    <th>Pts.</th>
    <th>Match</th>
  </tr>
  <?php foreach($boardgames as $boardgame): ?>
    <tr>
      <td>
        <?php echo link_to($boardgame->getName(), '@matches_boardgame_player?idBoardgame=' . $boardgame->getId() . "&username=" . $player->getUsername()); ?>
      </td>
      <td>
        <?php echo $boardgame->getTotPts(); ?>
      </td>
      <td>
        <?php echo $boardgame->getNMatches(); ?>
      </td>
    </tr>
  <?php endforeach; ?>
</table>

<div><?php echo link_to(__("indietro"), '@stats_league')?></div>